import { post } from '@/request/http.js'
import store from '@/store'

// export const getUserList = data => post('/Api/adminData/getList', data) // 系统管理中/获取管理员列表
export const getUserList = () =>
  post('/DXNXTD/GetMoudle?SessionId=' + store.state.user.SessionId_DX_H, {
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          fltUuid: store.state.user.FLT_UUID_DX_H,
          userRoles: store.state.user.USR_RLES_DX_H,
        },
      },
    },
  })

// 获取左侧菜单栏列表
export const getLeftList = () =>
  post('/FTKJWLHYPT/platform/queryModelByRole', {
    //userRoles: String(store.state.user.USR_RLES_DX_H),
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          userRoles: String(store.state.user.USR_RLES_DX_H),
        },
      },
    },
  })

//添加权限列表
export const listLeftGet = () =>
  post('/FTKJWLHYPT/platform/queryRoleBtn', {
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          userRoles: String(store.state.user.USR_RLES_DX_H),
        },
      },
    },
  })
